local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
    -- bootstrap lazy.nvim
    -- stylua: ignore
    vim.fn.system({"git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable",
                   lazypath})
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)

-- Load plugin specs from lua/plugins/*.lua
require("lazy").setup("plugins", {
    defaults = {
        lazy = true -- Default to lazy loading, optional
    },
    checker = { enabled = true }, -- automatically check for plugin updates
    change_detection = {
        notify = false -- I find the config changed notification super annoying
    }
})
